import { useState } from 'react'

export const useBoolean = (init: any) => {
  const [bol, setBol] = useState(init)

  const toggle = () => {
    setBol(!bol)
  }

  return [bol, toggle]
}
